package com.vegetable.modules.entity.wx;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 企业微信部门实体
 *
 * @author Qoder
 */
@Data
@TableName("wx_department")
@ApiModel(value = "企业微信部门")
public class WxDepartment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 部门ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "部门ID")
    private Long id;

    /**
     * 部门名称
     */
    @TableField("name")
    @ApiModelProperty(value = "部门名称")
    private String name;

    /**
     * 父部门ID
     */
    @TableField("parent_id")
    @ApiModelProperty(value = "父部门ID")
    private Long parentId;

    /**
     * 在父部门中的次序值
     */
    @TableField("order_num")
    @ApiModelProperty(value = "在父部门中的次序值")
    private Long orderNum;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}